#include "imx6ull.h"

void Delay(volatile unsigned int n);

int main()
{
    CCM->CCGR0=0xFFFFFFFF;
    CCM->CCGR1=0xFFFFFFFF;
    CCM->CCGR2=0xFFFFFFFF;
    CCM->CCGR3=0xFFFFFFFF;
    CCM->CCGR4=0xFFFFFFFF;
    CCM->CCGR5=0xFFFFFFFF;
    CCM->CCGR6=0xFFFFFFFF;

    IOMUX_SW_MUX->GPIO1_IO03=0x05;
    IOMUX_SW_PAD->GPIO1_IO03=0x10b0;

    GPIO1->GDIR |= (1 << 3);	

    while(1)
    {
        GPIO1->DR &= ~(1 << 3);
        Delay(2000);
        GPIO1->DR |= (1 << 3);
        Delay(2000);
    }
}

void Delay(volatile unsigned int n)
{
    while(n--)
    {
        for(volatile unsigned int i=0;i<255;i++);
    }
}



